﻿using KYJDAL;
using KYJModels;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KYJBLL
{
    public class SysLogManage
    {

        private SysLogService sysLogService = new SysLogService();
        /// <summary>
        /// 添加日志
        /// </summary>
        /// <param name="sysLog"></param>
        /// <returns></returns>
        public int AddSysLog(SysLog sysLog)
        {
            return sysLogService.AddSysLog(sysLog);
        }

        /// <summary>
        /// 根据时间日志类型进行查询
        /// </summary>
        /// <param name="start"></param>
        /// <param name="end"></param>
        /// <param name="logType"></param>
        /// <returns></returns>
        public DataTable QuerySysLogByConditon(string start, string end, string logType)
        {
            return sysLogService.QuerySysLogByConditon(start, end, logType);
        }
    }
}
